import React, { Component } from "react";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import { wechatBind, success, userInfo } from "./wechat.jsx";

class WechatApp extends Component {
    render() {
        return (
            <Router>
                <Switch>         
                    <Route path="/wechatBind" component={wechatBind} /> 
                    <Route path="/success" component={success} />                   
                    <Route path="/" component={userInfo} />
                </Switch>
            </Router>
        )
        
    }
}


export default WechatApp;
